import {
	createSSRApp
} from "vue";
import uviewPlus from 'uview-plus'
import * as Pinia from 'pinia';
import 'virtual:uno.css'
import App from "./App.vue";
export function createApp() {
	const app = createSSRApp(App);
	app.use(Pinia.createPinia())
  .use(uviewPlus, () => {
		return {
			options: {
				// 修改$u.config对象的属性
				config: {
					// 修改默认单位为rpx，相当于执行 uni.$u.config.unit = 'rpx'
					unit: 'rpx'
				}
			}
		}
	})
	return {
		app,
    Pinia
	};
}
